/************************************************************************
 * @file StandardStatusBarManager.h
 * @author Ian Chen
 * @version 1.0
 *
 * @section LICENSE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details at
 * http://www.gnu.org/licenses/lgpl.html
 *
 ************************************************************************/
#ifndef STANDARDSTATUSBARMANAGER_H
#define STANDARDSTATUSBARMANAGER_H

#include <QStatusBar>

#include <pluginui/manager/AbstractStatusBarManager.h>

namespace antu
{
namespace plugin
{
namespace ui
{
class PLUGINUISHARED_EXPORT StandardStatusBarManager : public AbstractStatusBarManager
{
public:
    StandardStatusBarManager(QStatusBar* pStatusBar);

    virtual void showMessage(const QString& message, int timeoutInSeconds = 0);

    virtual void appendPermanentStatusBarItem(QWidget* pStatusBarItem, int stretch = 0);

    virtual void clearMessage();

    virtual void appendStatusBarItem(QWidget* pStatusBarItem, int stretch = 0);

    virtual void removeStatusBarItem(QWidget* pStatusBarItem);

private:
    QStatusBar* m_pStatusBar;
};
}
}
}

#endif // STANDARDSTATUSBARMANAGER_H
